package com.Ajava1704.for设计模式.for静态代理;

/**
 * @类名: com.Ajava1704.for设计模式.for静态代理
 * @作者: lgt
 * @创建时间: 2020-02-15 14:36
 * @描述:
 **/
public class ForJingTaiProxy implements ForJingTaiInterface {

    private ForJingTaiInterface forJingTaiInterface;

    public ForJingTaiProxy(ForJingTaiInterface forJingTaiInterface) {
        this.forJingTaiInterface = forJingTaiInterface;
    }

    @Override
    public String test() {
        System.out.println("-----原方法执行前的增强-----");
        String test = forJingTaiInterface.test();
        System.out.println("-------原方法执行后的增强------");
        return test;
    }
}
